package com.gxxy.spring.kp02_modules.cls02_container.s2_saticcreatebean;


public class StaticCreateBeanFactory {

	public static StaticCreateBean create() {
		StaticCreateBean bean = new StaticCreateBean();
		bean.init();
		return bean;
	}

}
/* 利用实现FactoryBean的方式创建
public class StaticCreateBeanFactory implements FactoryBean<StaticCreateBean> {

	
	@Override
	public StaticCreateBean getObject() throws Exception {
		StaticCreateBean bean = new StaticCreateBean();
		bean.init();
		return bean;
	}
	
	@Override
	public Class<?> getObjectType() {
		return StaticCreateBean.class;
	}
	
	@Override
	public boolean isSingleton() {
		return false;
	}
}
*/